package com.lagou.homeWork4.hw2;
/*
* 创建用来删除的测试目录
* */


public class CreateFoldersAndFilesTest {

    public static void createFoldersAndFiles(){
        //声明String数组用来存放路径
        String[] dirs = new String[]{
                "./lagouhomeWork4/hw2/目录1/",
                "./lagouhomeWork4/hw2/目录1/目录1.1/",
                "./lagouhomeWork4/hw2/目录1/目录1.1/目录1.1.1/",
                "./lagouhomeWork4/hw2/目录1/目录1.2/",
                "./lagouhomeWork4/hw2/目录1/目录1.2/目录1.2.1/",
                "./lagouhomeWork4/hw2/目录1/目录1.2/目录1.2.2/"
        };
        //声明String数组用来存放文件名
        String[] files = new String[]{
                "test1.txt",
                "test1.1.txt",
                "test1.1.1.txt",
                "test1.2.txt",
                "test1.2.1.txt",
                "test1.2.2.txt",
        };
        int i=0;
        while(i<6){
            CreateFolders.createFolders(dirs[i]);
            CreateFiles.createFiles(dirs[i], files[i]);
            System.out.println("成功创建目录："+ dirs[i]);
            System.out.println("成功创建文件："+ files[i]);
            System.out.println();
            i++;
        }
    }
}
